.class Lcom/example/m6wmr/AddressListActivity$1;
.super Ljava/lang/Object;
.source "AddressListActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/AddressListActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Landroid/widget/AdapterView$OnItemClickListener;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/AddressListActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/AddressListActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    .line 157
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 5
    .param p2, "arg1"    # Landroid/view/View;
    .param p3, "arg2"    # I
    .param p4, "arg3"    # J
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 162
    .local p1, "arg0":Landroid/widget/AdapterView;, "Landroid/widget/AdapterView<*>;"
    const-string v1, ""

    const-string v2, "XXXXXXXXXXXXXX"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 163
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->flag:Ljava/lang/String;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$4(Lcom/example/m6wmr/AddressListActivity;)Ljava/lang/String;

    move-result-object v1

    if-nez v1, :cond_1

    .line 187
    :cond_0
    :goto_0
    return-void

    .line 167
    :cond_1
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->flag:Ljava/lang/String;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$4(Lcom/example/m6wmr/AddressListActivity;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "1"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 169
    const-string v2, "MMMMMMMMMMMMMM"

    new-instance v3, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v3, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v2, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 170
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->intent:Landroid/content/Intent;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$5(Lcom/example/m6wmr/AddressListActivity;)Landroid/content/Intent;

    move-result-object v2

    const-string v3, "name"

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->getContactname()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 171
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->intent:Landroid/content/Intent;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$5(Lcom/example/m6wmr/AddressListActivity;)Landroid/content/Intent;

    move-result-object v2

    const-string v3, "sex"

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->getSex()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 172
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->intent:Landroid/content/Intent;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$5(Lcom/example/m6wmr/AddressListActivity;)Landroid/content/Intent;

    move-result-object v2

    const-string v3, "tel"

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->getPhone()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 173
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->intent:Landroid/content/Intent;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$5(Lcom/example/m6wmr/AddressListActivity;)Landroid/content/Intent;

    move-result-object v2

    const-string v3, "addr"

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->getAddress()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 174
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    const/4 v2, -0x1

    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    invoke-virtual {v3}, Lcom/example/m6wmr/AddressListActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Lcom/example/m6wmr/AddressListActivity;->setResult(ILandroid/content/Intent;)V

    .line 175
    const-string v1, "RESULT_OK---------------"

    const-string v2, "-1"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 176
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    invoke-virtual {v1}, Lcom/example/m6wmr/AddressListActivity;->finish()V

    .line 178
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    const-string v2, "addrInfo"

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Lcom/example/m6wmr/AddressListActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 179
    .local v0, "userInfo":Landroid/content/SharedPreferences;
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "username"

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->getContactname()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v2, v3, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 180
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "addressid"

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->getId()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v2, v3, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 181
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "sex"

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->getSex()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v2, v3, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 182
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "tel"

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->getPhone()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v2, v3, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 183
    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    const-string v3, "addr"

    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v1}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v1

    add-int/lit8 v4, p3, -0x1

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lbean/AddressBean;

    invoke-virtual {v1}, Lbean/AddressBean;->getAddress()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v2, v3, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 185
    iget-object v1, p0, Lcom/example/m6wmr/AddressListActivity$1;->this$0:Lcom/example/m6wmr/AddressListActivity;

    invoke-virtual {v1}, Lcom/example/m6wmr/AddressListActivity;->finish()V

    goto/16 :goto_0
.end method
